Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rendering] Parallelize ES requests #199124

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

afharo
Copy link
Member

@afharo afharo commented Nov 6, 2024

Summary

APM traces have shown that these multiple GET .kibana/_doc/config can take up to 400ms, leading to a joined sequential time of 1.2s.

This code aims to run them concurrently to reduce any latency/network/ES effects when serving the index.html requests.

For maintainers

@afharo afharo added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc performance release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team:Performance labels Nov 6, 2024
@afharo afharo self-assigned this Nov 6, 2024
@afharo afharo requested a review from a team as a code owner November 6, 2024 12:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @afharo

@afharo afharo merged commit be3c159 into elastic:main Nov 6, 2024
33 checks passed
@afharo afharo deleted the rendering/parallelize-es-requests branch November 6, 2024 16:09
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11707468307

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 6, 2024
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 6, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Rendering] Parallelize ES requests
(#199124)](#199124)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-06T16:09:41Z","message":"[Rendering]
Parallelize ES requests
(#199124)","sha":"be3c159cfc9915abc48a409e123ee11070d34dba","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","performance","release_note:skip","v9.0.0","backport:prev-minor","Team:Performance"],"title":"[Rendering]
Parallelize ES
requests","number":199124,"url":"https://github.com/elastic/kibana/pull/199124","mergeCommit":{"message":"[Rendering]
Parallelize ES requests
(#199124)","sha":"be3c159cfc9915abc48a409e123ee11070d34dba"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199124","number":199124,"mergeCommit":{"message":"[Rendering]
Parallelize ES requests
(#199124)","sha":"be3c159cfc9915abc48a409e123ee11070d34dba"}}]}]
BACKPORT-->

Co-authored-by: Alejandro Fernández Haro <[email protected]>
mgadewoll pushed a commit to mgadewoll/kibana that referenced this pull request Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) performance release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Performance v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants